Use window-full-width-p instead of comparing frame-width and
authorMartin Rudalics <rudalics@gmx.at>
Wed, 8 Aug 2007 05:51:36 +0000 (05:51 +0000)
committerMartin Rudalics <rudalics@gmx.at>
Wed, 8 Aug 2007 05:51:36 +0000 (05:51 +0000)
window-width.

lisp/calendar/calendar.el

index 719f32be3c16a90c38dea6b424191199ff4cdb44..330cf8521f3d63638cada0759fc331131e474179 100644 (file)
@@ -2078,7 +2078,7 @@ Or, for optional MON, YR."
     ;; Don't do any window-related stuff if we weren't called from a
     ;; window displaying the calendar
     (when in-calendar-window
-      (if (or (one-window-p t) (/= (frame-width) (window-width)))
+      (if (or (one-window-p t) (not (window-full-width-p)))
           ;; Don't mess with the window size, but ensure that the first
           ;; line is fully visible
           (set-window-vscroll nil 0)